package com.foreknow.exer8;

import java.util.Scanner;

/**
 * @author shkstart
 * @create 2021-07-26 17:42
 */
public class Person {

     String name;
    int pscore;



    public Person() {
    }

    /*
    人出拳
     */
    public int showFist() {
        // 接收用户的选择
        Scanner input = new Scanner(System.in);
        System.out.print("\n请出拳:1.剪刀 2.石头 3.布 (输入相应数字) :");
        int show = input.nextInt();
        switch (show) {
            case 1:
                System.out.println("你出拳 剪刀");
                break;
            case 2:
                System.out.println("你出拳 石头");
                break;
            case 3:
                System.out.println("你出拳 布");
                break;
        }
        return show;
    }
}
